<template>
	<video-player-page name="pmtToNextArray" :isOpenDefaultDialog="false" :dialogButtons="dialogButtons" ref="pageRef">
		<question-dialog slot="questions" :next="next"></question-dialog>
	</video-player-page>
</template>

<script>
import questionDialog from '~/components/NextArrayVideoQuestion'
export default {
	components: {
		questionDialog
	},
	data() {
		return {
			dialogButtons: [
				{
					type: 'primary',
					text: '我学过编程',
					uri:  '/kmpNote?c=true'
				},
				{
					type: 'warning',
					text: '我没有学过编程',
					uri:  '/kmpNote?c=false'
				}
			]
		}
	},
	computed: {
		next() {
			return () => {
				this.$refs.pageRef.page.closeQuestionDialog()
				this.$refs.pageRef.page.openDialog()
			}
		}
	}
};
</script>